| Miles Sound System SDK 7.2a |
Input:
AX = 502H
BX = Driver number
CX = # of MIDI messages in DST MIDI_data[] area
MIDI message set copied by API to DST MIDI_data[] area
Output:
None
This function is the primary message-passing mechanism between MSS and the driver layer. Its input data consists of from 1 to n standard MIDI messages (of either Channel Voice or System Exclusive type), where n is limited by the size of the Driver State Table's 512-byte MIDI_data[] area. The actual number of MIDI messages to be processed is passed to the function in the CX register. Upon calling this function, the list of MIDI messages supplied by MSS will be transmitted or interpreted by the driver, in order of appearance. The driver processes each MIDI message with no delta-time intervals or intermessage delays. This "message list" concept is intended to reduce the large number of protected-mode to real-mode transitions that would be incurred if the function were designed to handle only one MIDI message per call.
The function handler does not need to handle MIDI running status, as MSS is responsible for associating the proper status byte with each message prior to insertion into the MIDI_data[] buffer.
This function should not perform DOS or other system-level accesses unless absolutely necessary.
Note: System Exclusive messages begin with the status byte $F0 or $F7, and are passed to the driver using the format given in the Standard MIDI Files 1.0 specification. This allows MSS to simply copy an entire System Exclusive event from the XMIDI file (or the buffer passed to the AIL_send_sysex_message function) to the driver's MIDI_data[] area. $F7 messages do not normally appear in PC MIDI traffic, so their implementation is optional.
For convenience, the Standard MIDI Files 1.0 System Exclusive format is reprinted in the description of the AIL_send_sysex_message function.
Group:
DOS XMIDI Sound Driver Interface
Related Functions:
AIL_send_sysex_message
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.